package cn.tedu.image;

import cn.tedu.image.vo.PageResult;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class Sp100ImageApplication {

    public static void main(String[] args) {
        SpringApplication.run(Sp100ImageApplication.class, args);
    }

    @Bean
    public MybatisPlusInterceptor mybatisPlusIntercepter() {
        final MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor();
        mybatisPlusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MARIADB));
        return mybatisPlusInterceptor;
    }
}
